import { GoodsResult } from "@/types/good";
import { httpRequest } from "@/utils/http";

// 获取商品详情信息
export const getGoodDetailByIdAPI = (id: string) => {
    return httpRequest<GoodsResult>({
        method: 'GET',
        url: '/goods',
        data: { id },
    });
};
